package com.ruoyi.oa.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.ExcelDictFormat;
import com.ruoyi.common.convert.ExcelDictConvert;
import com.ruoyi.workflow.domain.ActBusinessStatus;
import lombok.Data;

import java.util.Date;


/**
 * 比价信息视图对象 oa_purchase_parity
 *
 * @author ruoyi
 * @date 2023-04-03
 */
@Data
@ExcelIgnoreUnannotated
public class OaPurchaseParityVo {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private String id;

    /**
     * 部门id
     */
    private Long deptId;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 采购类型（0：非行政类采购；1：行政类采购）
     */
//    @ExcelProperty(value = "采购类型", converter = ExcelDictConvert.class)
//    @ExcelDictFormat(dictType = "purchase_type")
//    private String purchaseType;

    /**
     * 项目名称
     */
    @ExcelProperty(value = "项目名称")
    @ColumnWidth(20)
    private String projectName;

    /**
     * 物品名称
     */
    @ExcelProperty(value = "物品名称")
    private String objectName;

    /**
     * 规格型号
     */
    @ExcelProperty(value = "规格型号")
    private String specificationModel;

    /**
     * 数量
     */
    @ExcelProperty(value = "数量")
    private String number;

    private String parityList;

    /**
     * 比价推荐说明
     */
    @ExcelProperty(value = "比价推荐说明")
    private String recommendedInstructions;


    private ActBusinessStatus actBusinessStatus;

    /**
     * 更新者
     */
    private String updateBy;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * oss集合
     */
    private String attachment;

    /**
     * 上次流程
     */
    private String lastWorkflow;

    /**
     * 创建时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm",timezone="GMT+8")
    @ExcelProperty(value = "提交日期")
    @ColumnWidth(20)
    private Date createTime;

    @ExcelProperty(value = "提交人")
    private String createBy;

    @ExcelProperty(value = "采购主体")
    private String payUnit;

    @ExcelProperty(value = "采购事项名称")
    private String itemName;

    @ExcelProperty(value = "期望交付日期")
    @ColumnWidth(20)
    @JsonFormat(pattern="yyyy-MM-dd HH:mm",timezone="GMT+8")
    private Date designDate;
}
